
echo "[+] Setting correct owner:group=root:root on /etc"

apt-get -y --force-yes install user-setup
#user-setup

#echo "[+] Setting root password and other small fix/tweaks"
#cp -rv /tmp/res/shadow.txt /etc/shadow
#cp -rv /tmp/res/passwd.txt /etc/passwd


## chown stuff
chown -R root:root /etc || failure "Unable to change ownership on /etc"
chown root:root /usr || failure "Unable to change ownership on /usr"
chown -R root:root /usr/local || failure "Unable to change ownership on /usr/local"
chmod u+s /usr/local/bin/writeexid
chmod u+s /usr/local/bin/writeroom


## Rc update stuff
update-rc.d configure-interfaces defaults 39
update-rc.d kde defaults 20
